import cgi
from google.appengine.ext import db
from google.appengine.api import users
from google.appengine.ext import webapp
from google.appengine.ext.webapp.util import run_wsgi_app
from google.appengine.api import images
from google.appengine.ext.webapp import template
import appengine_admin

from models import *


returnerror = 	{
		'noidfound': "no %s found for id: %s" ,
		'accountfield': "%s field is missing",
		'field': "required field %s is missing for %s",
		'locationfield': "required field %s is missing for location",
		'notexists': "%s: '%s' does not exist",
		'exists': "%s: '%s' already exists",
		'created': "%s was created with id: %s",
		'updated': "%s was updated with id: %s",
		'signinpass': "%s has matching password",
		'signinfail': "password does not match",
		'transactionfail': "something happened on the way to the datastore",
		'assoctype': "association type %s is not accepted, either facebook, youtube, or twitter",
		}
